package cn.kgc.jjl.junitTest;



public   class  CalculatorTest  {

   private static Calculator calculator = new Calculator();
   
   
   public void setUp() throws Exception {
       calculator.clear();
   }

   
   public void testAdd() {
       calculator.add(2);
       calculator.add(3);
       assertEquals(5, calculator.getResult());
   }

   
   public void testSubstract() {
       calculator.add(10);
       calculator.substract(2);
       assertEquals(8, calculator.getResult());
   }

   
   private void assertEquals(int i, int result) {
	// TODO Auto-generated method stub
	
}


public void testMultiply() {
   }

   
   public void testDivide() {
       calculator.add(8);
       calculator.divide(2);
       assertEquals(4, calculator.getResult());
   }
}
